package com.phome.action;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport implements ServletRequestAware{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	 
	public HttpServletRequest request;
	public HttpSession session;
	private ServletContext application;
	
	@Override
	public void setServletRequest(HttpServletRequest request) {
		
		this.request = request;
		this.session = request.getSession();
		this.application = session.getServletContext();
	}
	
}
